package com.online.olsrootserver.service;

import com.online.olsrootserver.service.impl.FindAgentServerImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * Created by littleheng on 2018/5/9
 */
@FeignClient(value = "find-agent-server", fallback = FindAgentServerImpl.class)
public interface FindAentServer {

    @RequestMapping(value = "/saveToken", method = RequestMethod.POST)
    Map saveToken(@RequestBody Map map);

    /**
     * 保存微信用户信息到redis接口
     * @return
     */
    @RequestMapping(value = "/saveWeChatUser", method = RequestMethod.POST)
    Map saveWeChatUser(@RequestBody Map map);

    /**
     * 查询微信用户信息在redis中是否存在接口
     * @return
     */
    @RequestMapping(value = "/getWeChatUser", method = RequestMethod.POST)
    Map getWeChatUser(@RequestBody Map map);
}
